package com.aaa.system.controller.api;

import com.aaa.entity.DictData;
import com.aaa.system.service.DictDataService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: aaa-his-parent
 * @description:
 * @author: 闫克起2
 * @create: 2023-12-08 12:01
 **/
@RestController
@RequestMapping("/system/api/dictData")
public class ApiDictDataController {

    @Autowired
    private DictDataService dictDataService;

    @GetMapping("{dictData}")
    public Result<List<DictData>> getDictData(@PathVariable String dictData){
        return new Result<>(200,"查询成功",dictDataService.findByType(dictData));
    }
}
